package com.doupi.partner.op.dto.echarts;

import java.io.Serializable;
import java.util.List;

/**
 * echarts
 *
 * @author zsx
 * @version 1.0.0 @ 2017年4月20日 10:41:24
 */
public class EchartsData implements Serializable {
    /**
     * 标题组件
     */
    private Title title;
    /**
     * 图例组件
     */
    private Legend legend;
    /**
     * 直角坐标系 grid 中的 x 轴
     */
    private List<Axis> xAxis;

    /**
     * 直角坐标系 grid 中的 y 轴
     */
    private List<Axis> yAxis;
    /**
     * 系列列表
     */
    private List<Series> series;

    public EchartsData(Title title, List<Axis> xAxis, List<Axis> yAxis, List<Series> series) {
        this.title = title;
        this.xAxis = xAxis;
        this.yAxis = yAxis;
        this.series = series;
    }

    public EchartsData(Title title, Legend legend, List<Series> series) {
        this.title = title;
        this.legend = legend;
        this.series = series;
    }

    public EchartsData(List<Axis> xAxis, List<Axis> yAxis, List<Series> series) {
        this.xAxis = xAxis;
        this.yAxis = yAxis;
        this.series = series;
    }

    public EchartsData(List<Series> series) {
        this.series = series;
    }

    public Title getTitle() {
        return title;
    }

    public void setTitle(Title title) {
        this.title = title;
    }

    public Legend getLegend() {
        return legend;
    }

    public void setLegend(Legend legend) {
        this.legend = legend;
    }

    public List<Axis> getxAxis() {
        return xAxis;
    }

    public void setxAxis(List<Axis> xAxis) {
        this.xAxis = xAxis;
    }

    public List<Axis> getyAxis() {
        return yAxis;
    }

    public void setyAxis(List<Axis> yAxis) {
        this.yAxis = yAxis;
    }

    public List<Series> getSeries() {
        return series;
    }

    public void setSeries(List<Series> series) {
        this.series = series;
    }


}
